﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XL.Crawler.Core.Crawlers.CrawlerEventArgs
{
    /// <summary>
    /// 开始事件参数
    /// </summary>
    public class StartEventArgs : EventArgs
    {

        /// <summary>
        /// 请求地址
        /// </summary>
        public string Url { get; set; } = null!;

        /// <summary>
        /// 开始时间
        /// </summary>
        internal DateTimeOffset DateTime { get; }
        /// <summary>
        /// 构造
        /// </summary>
        public StartEventArgs()
        {
            DateTime = DateTimeOffset.Now;
        }
        public StartEventArgs(string url) : this()
        {
            Url = url;
        }
    }
}
